﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    Codebehind="NetApply.aspx.cs" Inherits="Ankin.EHBH.Web.Modules.Apply.NetApply"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphcenter" runat="server">

    <script src="../../js/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../../js/jquery.flexselect.js" type="text/javascript"></script>

    <script src="../../js/liquidmetal.js" type="text/javascript"></script>

    <script src="../../js/popup.js" type="text/javascript"></script>

    <script type="text/javascript">
      $(document).ready(function() {
        $("select[class*=flexselect]").flexselect();
        
        
        //获取供应商文本
        $('#ctl00_cphcenter_ddlSupply_flexselect').blur(function() 
        {var tt = $('#ctl00_cphcenter_ddlSupply_flexselect').attr('value');
        $('#ctl00_cphcenter_hdfSupply').attr('value',tt);
        })
        
        //获取产品名
        alert($.cookie('popupstatus'));
        
        /*测试COOKIES*/
        if($.cookie('popupstatus')==1)
        {
            
            disablepopup();
            centerpopup();
            loadpopup();
        }
        //写Cookies
        $('#wCookies').click(function(){
		$.cookie('name', 'test11213',{expires: 7});				  
		});
		//读Cookies
		$('#rCookies').click(function(){
		var test = $.cookie('popupStatus');
		alert (test);
		});
		
		$('#rCookies1').click(function(){
		var test = $.cookie('popupStatus');
		alert (test);
		});
		//删除
		$('#dCookies').click(function(){
		$.cookie('popupStatus', '0',{expires: 7});							  
		});
		
      });




    </script>

    <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tr>
            <td class="right-color">
                请领信息---医用耗材请领</td>
        </tr>
    </table>
    <table cellspacing="0" cellpadding="0" width="100%" border="0" style="margin-top: 14px;">
        <tr>
            <td colspan="7" class="bor bor-bg">
                医用耗材请领信息</td>
        </tr>
        <tr>
            <td class="bor">
                <table cellspacing="0" cellpadding="0" width="100%" border="0" class="t1">
                    <tr>
                        <td style="width: 82px">
                            产品类别</td>
                        <td style="width: 152px">
                            <asp:DropDownList ID="ddlPrimClass" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlPrimClass_SelectedIndexChanged">
                            </asp:DropDownList></td>
                        <td style="width: 84px">
                            二级类别</td>
                        <td style="width: 93px">
                            <asp:DropDownList ID="ddlSecClass" runat="server" OnSelectedIndexChanged="ddlSecClass_SelectedIndexChanged"
                                AutoPostBack="True">
                            </asp:DropDownList>
                        </td>
                        <td colspan="3">
                            申请类型&nbsp;<asp:DropDownList ID="ddlApply_Type" runat="server" OnSelectedIndexChanged="ddlSecClass_SelectedIndexChanged">
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td>
                            产品名称</td>
                        <td style="width: 152px">
                            <asp:DropDownList ID="ddlExp_Name" runat="server" AutoPostBack="true" CssClass="flexselect">
                            </asp:DropDownList>
                            <div style="display: none">
                                <asp:TextBox ID="TxtExpName" runat="server" OnTextChanged="TxtExpName_TextChanged"
                                    AutoPostBack="True"></asp:TextBox>
                            </div>
                        </td>
                        <td>
                            规格型号</td>
                        <td style="width: 93px">
                            <asp:DropDownList ID="ddlSpecs" runat="server">
                                <asp:ListItem></asp:ListItem>
                            </asp:DropDownList></td>
                        <td colspan="3">
                            <asp:Button ID="txtSearch" runat="server" Text="查询" OnClick="txtSearch_Click" CssClass="button"
                                Width="57" Height="25" Style="cursor: pointer;" /></td>
                    </tr>
                    <tr>
                        <td>
                            备注</td>
                        <td colspan="6">
                            <asp:TextBox ID="txtMemo" runat="server" TextMode="MultiLine" Width="98%"></asp:TextBox></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <table cellspacing="0" cellpadding="0" width="100%" border="0" style="margin-top: 14px;">
        <tr>
            <td>
                <asp:HiddenField ID="hdfStore_Id" runat="server" />
                <asp:HiddenField ID="hdfBill_Id" runat="server" />
                <asp:HiddenField ID="hdfApply_Type" runat="server" />
                <asp:HiddenField ID="hdfDept_Code" runat="server" />
                <asp:HiddenField ID="hdfApplier" runat="server" />
                <asp:HiddenField ID="hfdStatus" runat="server" />
                <asp:HiddenField ID="hdfCreate_Date" runat="server" />
                <asp:HiddenField ID="hdfOperator" runat="server" />
                <asp:HiddenField ID="hdfInfo_ID" runat="server" Value="noSelect"></asp:HiddenField>
                <asp:HiddenField ID="hfdConfirm" runat="server" />
                &nbsp; &nbsp;&nbsp;
            </td>
        </tr>
    </table>
    <table cellspacing="0" cellpadding="0" width="100%" border="0" style="margin-top: 14px;">
        <tr>
            <td class="bor bor-bg">
                请领单明细</td>
        </tr>
        <tr>
            <td class="bor" style="padding: 13px;">
                <asp:GridView ID="grvApplyDetail" runat="server" AutoGenerateColumns="False" DataKeyNames="INFO_ID"
                    OnRowCommand="grvApplyDetail_RowCommand" OnRowDataBound="grvApplyDetail_RowDataBound"
                    Width="100%" OnRowCreated="grvApplyDetail_RowCreated" AllowPaging="True" OnPageIndexChanging="grvApplyDetail_PageIndexChanging"
                    AllowSorting="True" OnSelectedIndexChanged="grvApplyDetail_SelectedIndexChanged"
                    PageSize="20">
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <RowStyle CssClass="gv-first-line" />
                    <EmptyDataTemplate>
                        <table width="100%" height="100">
                            <tr>
                                <td align="center" class="jg">
                                    对不起，没有找到任何相关记录
                                </td>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                    <Columns>
                        <asp:BoundField HeaderText="基本信息号" DataField="INFO_ID">
                            <ControlStyle CssClass="hidden" />
                            <FooterStyle CssClass="hidden" />
                            <HeaderStyle CssClass="hidden" />
                            <ItemStyle CssClass="hidden" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="产品代码" />
                        <asp:BoundField HeaderText="产品名称" />
                        <asp:BoundField HeaderText="规格型号" />
                        <asp:BoundField HeaderText="产品分类" />
                        <asp:BoundField HeaderText="建议零售价" />
                        <asp:BoundField HeaderText="单位" />
                        <asp:TemplateField HeaderText="申请数量">
                            <ItemTemplate>
                                <asp:TextBox ID="txtQuan" runat="server" OnKeyPress="if(((event.keyCode>=48)&&(event.keyCode <=57) )) {event.returnValue=true;} else{event.returnValue=false;}"
                                    Width="50"></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="现有库存">
                            <ControlStyle CssClass="hidden" />
                            <FooterStyle CssClass="hidden" />
                            <HeaderStyle CssClass="hidden" />
                            <ItemStyle CssClass="hidden" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="添加" ShowHeader="False">
                            <ItemTemplate>
                                <asp:Button ID="btnAdd" CommandName="btnAddname" runat="server" CausesValidation="false"
                                    Text="添加" CssClass="button" Width="57" Height="25" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <PagerStyle CssClass="fy" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="Black" />
                    <HeaderStyle CssClass="gv-head" />
                    <EditRowStyle BackColor="Black" />
                    <AlternatingRowStyle BackColor="White" />
                    <PagerSettings Mode="NumericFirstLast" FirstPageText="首页" LastPageText="末页" />
                </asp:GridView>
            </td>
        </tr>
    </table>
    <table cellspacing="0" cellpadding="0" width="100%" border="0" style="margin-top: 14px;">
        <tr>
            <td>
                <center>
                    <asp:Button ID="btnSaveApply" runat="server" Text="查看请领单" OnClick="btnSaveApply_Click"
                        CssClass="longbutton" Width="90" Height="25" Style="cursor: pointer;"></asp:Button></center>
                &nbsp;
                <asp:Label ID="lblVaildsave" runat="server" ForeColor="Red"></asp:Label>
                &nbsp;&nbsp;
                <br />
                <asp:HiddenField ID="hfdInfo_Id" runat="server" />
                <asp:HiddenField ID="hdfExp_Code" runat="server" />
                <asp:HiddenField ID="hdfExp_Name" runat="server" Value="noSelect" />
            </td>
        </tr>
    </table>
    <div id="popupContact" style="height: 200px;">
        
        <table width="700">
            <tr>
                <td align="right">
                </td>
                <td align="left">
                </td>
            </tr>
            <tr>
                <td align="right"><asp:Button ID="btnYes" Text="是" runat="server" Width="50px" />
                </td>
                <td align="left"><input name="" id="btnClosePop" type="button" value="关闭按钮" class="longbutton" style="cursor:pointer; width:90px; height:25px;" />
                </td>
            </tr>
        </table>
        
    </div>
    <div id="backgroundPopup" style=" background-color: inherit;_filter:alpha(opacity=0);">
    </div>
</asp:Content>
